package com.yh.dao;

import java.util.List;

import com.yh.bean.CarApply;
import com.yh.bean.CarManage;

public interface CarDao {
	//新增车辆
	public int addcar(CarManage cm);
	
	//查询车辆
	public List<CarManage> querycar();
	
	//查看车辆状态1
	public String checkcar1(CarApply ca);
	
	//查看车辆状态2
	public String checkcar2(CarApply ca);
	
	//修改车辆
	public int updatecar(CarManage cm);
	
	//删除车辆
	public int delcar(int cm_id);

	//申请用车
	public int carapply(CarApply ca);
	
	//删除申请用车
	public int delcarapply(int ca_id);
	
	//查询车辆申请状态
	public List<CarApply> querycarapply(CarApply ca);
	
	//审批车辆
	public int updatecarapply(CarApply ca);
		
}
